<?php
// code to set include_path...

class AutoloadException extends Exception { }

class AutoloadClass {

    public static function autoload($sClassName) {

        @include_once($sClassName . '.class.php');

        // does the class requested actually exist now?
        if (class_exists($sClassName)) {
            // yes, we're done
            return;
        }
        
    }
}

spl_autoload_register(array('AutoloadClass', 'autoload'));